/**************************************************************************/
/*                                                                        */
/* Copyright (c) Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2009-4-9                                             */ 
/*    filename:   iSmartNavSystemWnd.cpp                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/
#include "iSmartNavSystemWnd.h"
#include "ShellWndSize.h"

CiSmartNavSystemWnd::CiSmartNavSystemWnd()
{
	
}
CiSmartNavSystemWnd::~CiSmartNavSystemWnd()
{

}

void CiSmartNavSystemWnd::PaintWinEx(HDC hdcMem, unsigned char * &hdc, RECT* prcUpdate)
{
	CMzWndEx::PaintWinEx(hdcMem, hdc, prcUpdate );
}
BOOL CiSmartNavSystemWnd::OnInitDialog()
{
	if( !CMzWndEx::OnInitDialog() )
	{
		return FALSE;
	}
	
	SetForegroundWindow( m_hWnd );

	RECT rcClient;
	GetClientRect(m_hWnd, &rcClient);
	m_UIDesktopBg.SetPos(rcClient.left, rcClient.top,RECT_WIDTH(rcClient), RECT_HEIGHT(rcClient));
	AddUiWin(&m_UIDesktopBg);
	m_UIDesktopBg.InitBacgroundImage(m_hWnd, MzGetInstanceHandle(), 1003);

	m_UiDesktopIcon.InitUiWin();
	m_UiDesktopIcon.SetPos(ISHELL_WND_MOVE_SIZE_LEFT,
			ISHELL_WND_MOVE_SIZE_TOP,
			ISHELL_WND_MOVE_SIZE_WIDTH,
			ISHELL_WND_MOVE_SIZE_HEIGHT);

	m_UiDesktopIcon.SetVisible(false);
	m_UiDesktopIcon.SetID(123);
	AddUiWin(&m_UiDesktopIcon);

	m_UiRadioTuner.InitUiWin();
	m_UiRadioTuner.SetPos(ISHELL_WND_MOVE_SIZE_LEFT,
			ISHELL_WND_MOVE_SIZE_TOP,
			DEVICE_SIZE_WIDTH,
			DEVICE_SIZE_HEIGHT);
	m_UiRadioTuner.SetVisible(true);
	m_UiRadioTuner.SetID(1000);
	AddUiWin(&m_UiRadioTuner);


	return TRUE;
}
void CiSmartNavSystemWnd::OnMzCommand(WPARAM wParam, LPARAM lParam)
{
	switch( LOWORD( wParam ) )
	{
	case 0:
		{

		}
		break;
	}
}

